import $http from '@/assets/js/http'


//获取轮播图列表
export function getBannerList(location){
	return $http.get('/manage/banner/list',{
		params:{
			location:location
		}
	})
}

//新增轮播图
export function postBannerAdd(location,imgUrl){
	return $http.post('/manage/banner/add',{
		location:location,
		imgUrl:imgUrl
	})
}

//删除轮播图
export function postBannerDel(Id){
	return $http.post('/manage/banner/delete',{
		id:Id
	})
}